// main: ./darkBlue.less
@color_1: #999;
@color_2: #fff;
@color_3: #c2c2c2;
@color_4: #5FB878;
@color_5: #666;
@color_6: #e2e2e2;
@background_color_1: #fff;
@background_color_2: #f2f2f2;
@background_color_3: #5FB878;
@background_color_4: #d2d2d2;
@background_color_5: #c2c2c2;
@background_color_6: #e2e2e2;
@background_color_7: #FBFBFB;
@border_color_1: #FF5722;
@border_color_2: #eee;
@border_color_3: #c2c2c2;
@border_color_4: #5FB878;
@border_color_5: #d2d2d2;
@border_color_6: #e2e2e2;
@border_top_color_1: #c2c2c2;
@border_top_color_2: #d2d2d2;

.layui-form {
	input[type=checkbox] {
		display: none;
	}
	input[type=radio] {
		display: none;
	}
	select {
		display: none;
	}
	[lay-ignore] {
		display: initial;
	}
}
.layui-form-item {
	margin-bottom: 15px;
	clear: both;
	*zoom: 1;
	&:after {
		content: '\20';
		clear: both;
		*zoom: 1;
		display: block;
		height: 0;
	}
	.layui-inline {
		margin-bottom: 5px;
		margin-right: 10px;
	}
	.layui-input-inline {
		float: left;
		width: 190px;
		margin-right: 10px;
	}
	.layui-form-checkbox {
		margin-top: 4px;
	}
	.layui-form-checkbox[lay-skin=primary] {
		margin-top: 10px;
	}
}
.layui-form-label {
	float: left;
	display: block;
	padding: 9px 15px;
	width: 80px;
	font-weight: 400;
	line-height: 20px;
	text-align: right;
}
.layui-form-label-col {
	display: block;
	float: none;
	padding: 9px 0;
	line-height: 20px;
	text-align: left;
}
.layui-input-block {
	margin-left: 110px;
	min-height: 36px;
}
.layui-input-inline {
	display: inline-block;
	vertical-align: middle;
}
.layui-form-text {
	.layui-input-inline {
		width: auto;
	}
}
.layui-form-mid {
	float: left;
	display: block;
	padding: 9px 0 !important;
	line-height: 20px;
	margin-right: 10px;
}
.layui-form-danger&+.layui-form-select {
	.layui-input {
		border-color: @border_color_1 !important;
	}
}
.layui-form-danger {
	&:focus {
		border-color: @border_color_1 !important;
	}
}
.layui-form-select {
	.layui-input {
		padding-right: 30px;
		cursor: pointer;
	}
	.layui-edge {
		position: absolute;
		right: 10px;
		top: 50%;
		margin-top: -3px;
		cursor: pointer;
		border-width: 6px;
		border-top-color: @border_top_color_1;
		border-top-style: solid;
		transition: all .3s;
		-webkit-transition: all .3s;
	}
	dl {
		display: none;
		position: absolute;
		left: 0;
		top: 42px;
		padding: 5px 0;
		z-index: 899;
		min-width: 100%;
		border: 1px solid #d2d2d2;
		max-height: 300px;
		overflow-y: auto;
		background-color: @background_color_1;
		border-radius: 2px;
		box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
		box-sizing: border-box;
		dd {
			padding: 0 10px;
			line-height: 36px;
			white-space: nowrap;
			overflow: hidden;
			text-overflow: ellipsis;
			cursor: pointer;
			&:hover {
				background-color: @background_color_2;
				-webkit-transition: .5s all;
				transition: .5s all;
			}
		}
		dt {
			padding: 0 10px;
			line-height: 36px;
			white-space: nowrap;
			overflow: hidden;
			text-overflow: ellipsis;
			font-size: 12px;
			color: @color_1;
		}
		dd.layui-select-tips {
			padding-left: 10px !important;
			color: @color_1;
		}
		dd.layui-this {
			background-color: @background_color_3;
			color: @color_2;
		}
		dd.layui-disabled {
			background-color: @background_color_1;
		}
	}
	.layui-select-group {
		dd {
			padding-left: 20px;
		}
	}
}
.layui-form-checkbox {
	background-color: @background_color_1;
	display: inline-block;
	vertical-align: middle;
	position: relative;
	height: 30px;
	line-height: 30px;
	margin-right: 10px;
	padding-right: 30px;
	cursor: pointer;
	font-size: 0;
	-webkit-transition: .1s linear;
	transition: .1s linear;
	box-sizing: border-box;
	* {
		display: inline-block;
		vertical-align: middle;
	}
	span {
		padding: 0 10px;
		height: 100%;
		font-size: 14px;
		border-radius: 2px 0 0 2px;
		background-color: @background_color_4;
		color: @color_2;
		overflow: hidden;
	}
	&:hover {
		span {
			background-color: @background_color_5;
		}
		i {
			border-color: @border_color_3;
			color: @color_3;
		}
	}
	i {
		position: absolute;
		right: 0;
		top: 0;
		width: 30px;
		height: 28px;
		border: 1px solid #d2d2d2;
		border-left: none;
		border-radius: 0 2px 2px 0;
		color: @color_2;
		font-size: 20px;
		text-align: center;
	}
}
.layui-form-selected {
	dl {
		display: block;
	}
	.layui-edge {
		margin-top: -9px;
		-webkit-transform: rotate(180deg);
		transform: rotate(180deg);
		margin-top: -3px;
	}
}
.layui-form-switch {
	display: inline-block;
	vertical-align: middle;
	position: relative;
	height: 22px;
	line-height: 22px;
	min-width: 35px;
	padding: 0 5px;
	margin-top: 8px;
	border: 1px solid #d2d2d2;
	border-radius: 20px;
	cursor: pointer;
	background-color: @background_color_1;
	-webkit-transition: .1s linear;
	transition: .1s linear;
	i {
		position: absolute;
		left: 5px;
		top: 3px;
		width: 16px;
		height: 16px;
		border-radius: 20px;
		background-color: @background_color_4;
		-webkit-transition: .1s linear;
		transition: .1s linear;
	}
	em {
		position: relative;
		top: 0;
		width: 25px;
		margin-left: 21px;
		padding: 0 !important;
		text-align: center !important;
		color: @color_1 !important;
		font-style: normal !important;
		font-size: 12px;
	}
}
:root {
	.layui-form-selected {
		.layui-edge {
			margin-top: -9px;
		}
	}
}
.layui-form-selectup {
	dl {
		top: auto;
		bottom: 42px;
	}
}
.layui-select-none {
	margin: 5px 0;
	text-align: center;
	color: @color_1;
}
.layui-select-disabled {
	.layui-disabled {
		border-color: @border_color_2 !important;
	}
	.layui-edge {
		border-top-color: @border_top_color_2;
	}
}
.layui-form-checked {
	border-color: @border_color_4;
	&:hover {
		border-color: @border_color_4;
		span {
			background-color: @background_color_3;
		}
		i {
			color: @color_4;
		}
	}
	span {
		background-color: @background_color_3;
	}
	i {
		color: @color_4;
	}
}
.layui-form-checkbox[lay-skin=primary] {
	height: auto !important;
	line-height: normal !important;
	min-width: 18px;
	min-height: 18px;
	border: none !important;
	margin-right: 0;
	padding-left: 28px;
	padding-right: 0;
	background: 0 0;
	span {
		padding-left: 0;
		padding-right: 15px;
		line-height: 18px;
		background: 0 0;
		color: @color_5;
	}
	i {
		right: auto;
		left: 0;
		width: 16px;
		height: 16px;
		line-height: 16px;
		border: 1px solid #d2d2d2;
		font-size: 12px;
		border-radius: 2px;
		background-color: @background_color_1;
		-webkit-transition: .1s linear;
		transition: .1s linear;
	}
	&:hover {
		i {
			border-color: @border_color_4;
			color: @color_2;
		}
	}
}
.layui-form-checked[lay-skin=primary] {
	i {
		border-color: @border_color_4;
		background-color: @background_color_3;
		color: @color_2;
	}
}
.layui-checkbox-disbaled[lay-skin=primary] {
	span {
		background: 0 0 !important;
		color: @color_3;
	}
	&:hover {
		i {
			border-color: @border_color_5;
		}
	}
}
.layui-form-onswitch {
	border-color: @border_color_4;
	background-color: @background_color_3;
	i {
		left: 100%;
		margin-left: -21px;
		background-color: @background_color_1;
	}
	em {
		margin-left: 5px;
		margin-right: 21px;
		color: @color_2 !important;
	}
}
.layui-checkbox-disbaled {
	border-color: @border_color_6 !important;
	i {
		border-color: @border_color_6 !important;
	}
	span {
		background-color: @background_color_6 !important;
	}
	&:hover {
		i {
			color: @color_2 !important;
		}
	}
}
[lay-radio] {
	display: none;
}
.layui-form-radio {
	display: inline-block;
	vertical-align: middle;
	line-height: 28px;
	margin: 6px 10px 0 0;
	padding-right: 10px;
	cursor: pointer;
	font-size: 0;
	* {
		display: inline-block;
		vertical-align: middle;
		font-size: 14px;
	}
	>i {
		margin-right: 8px;
		font-size: 22px;
		color: @color_3;
		&:hover {
			color: @color_4;
		}
	}
}
.layui-form-radioed {
	>i {
		color: @color_4;
	}
}
.layui-radio-disbaled {
	>i {
		color: @color_6 !important;
	}
}
.layui-form-pane {
	.layui-form-label {
		width: 110px;
		padding: 8px 15px;
		height: 38px;
		line-height: 20px;
		border-width: 1px;
		border-style: solid;
		border-radius: 2px 0 0 2px;
		text-align: center;
		background-color: @background_color_7;
		overflow: hidden;
		box-sizing: border-box;
	}
	.layui-input-inline {
		margin-left: -1px;
	}
	.layui-input-block {
		margin-left: 110px;
		left: -1px;
	}
	.layui-input {
		border-radius: 0 2px 2px 0;
	}
	.layui-form-text {
		.layui-form-label {
			float: none;
			width: 100%;
			border-radius: 2px;
			box-sizing: border-box;
			text-align: left;
		}
		.layui-input-inline {
			display: block;
			margin: 0;
			top: -1px;
			clear: both;
		}
		.layui-input-block {
			margin: 0;
			left: 0;
			top: -1px;
		}
		.layui-textarea {
			min-height: 100px;
			border-radius: 0 0 2px 2px;
		}
	}
	.layui-form-checkbox {
		margin: 4px 0 4px 10px;
	}
	.layui-form-radio {
		margin-top: 6px;
		margin-left: 10px;
	}
	.layui-form-switch {
		margin-top: 6px;
		margin-left: 10px;
	}
	.layui-form-item[pane] {
		position: relative;
		border-width: 1px;
		border-style: solid;
		.layui-form-label {
			position: absolute;
			left: 0;
			top: 0;
			height: 100%;
			border-width: 0 1px 0 0;
		}
		.layui-input-inline {
			margin-left: 110px;
		}
	}
}
